package com.icinfo.cloud.provider.punish.vo;

import com.icinfo.cloud.provider.punish.ucase.casemain.model.CaseReasonMainRecord;
import lombok.Data;

/**
 *
 * @author HKxxx
 * @date 2024/1/19 15:56
 */
@Data
public class AssociatedTaskCaseReasonVo {


    /**
     * 案由名称
     */
    private String caseReasonName;
    /**
     * 违法行为-直通车的违法行为取值为案由名称
     */
    private String illegalAct;
    /**
     * 违则
     */
    private String illegalBasis;
    /**
     * 罚则
     */
    private String punishBasis;

    public static AssociatedTaskCaseReasonVo convertReason(CaseReasonMainRecord record){
        AssociatedTaskCaseReasonVo vo = new AssociatedTaskCaseReasonVo();
        vo.setCaseReasonName(record.getCaseReasonName());
        vo.setIllegalAct(record.getCaseReasonName());
        vo.setIllegalBasis(record.getIllegalBasis());
        vo.setPunishBasis(record.getPunishBasis());
        return vo;
    }

}
